// electron/service/SystemService.ts
import axios from 'axios';

class SystemService {
  async getDataFromUrl(url: string): Promise<any> {
    if (!url) {
      throw new Error('URL 不合法');
    }

    const response = await axios.get(url);
    return response.data;
  }
}

export default new SystemService();
